#include "testthread.h"
#include "QDebug"

TestThread::TestThread()
{

}

void TestThread::init(GLParse *glParse)
{
    this->glParse = glParse;
    isSend = false;
}

void TestThread::run()
{
     while(true)
     {
        msleep(1000);

        if(isSend)
        {
            //qDebug() << "testThread";
            glParse->send_test();
        }

     }
}

void TestThread::setFlag(bool isSend)
{
    this->isSend = isSend;
}
